package POJO;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

public class Product {
    // 产品名称（对应"name"字段）
    @JsonProperty("name")
    private String name;

    // 产品编码（对应"code"字段）
    @JsonProperty("code")
    private String code;

    // 产品唯一标识（对应"uuid"字段）
    @JsonProperty("uuid")
    private String uuid;

    // 节点列表（对应"nodes"数组）
    @JsonProperty("nodes")
    private List<Node> nodes;



    // getter和setter
    public String getName() {
        return name;
    }




    @Override
    public String toString() {
        return "Product{" +
                "name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", uuid='" + uuid + '\'' +
                ", nodes=" + nodes +
                '}';
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public List<Node> getNodes() {
        return nodes;
    }

    public void setNodes(List<Node> nodes) {
        this.nodes = nodes;
    }
}